package edu.lyun.trainingproject.data.dto;

import edu.lyun.trainingproject.utils.Converter;

import java.util.Date;

public class User implements Converter {
    public Integer id;
    public String name;
    public String password;
    public String email;
    public Date data;

    public User(Integer id, String name, String password, String email, java.sql.Date data) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.email = email;
        this.data = data;
    }

    @Override
    public String toString() {
        return "User{" + "id=" + id + ", name='" + name + '\'' + ", password='" + password + '\'' + ", email='" + email + '\'' + ", data='" + data + '\'' + '}';
    }
}
